package com.zhonghui.wms.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.zhonghui.wms.mapper.WmsWarehouseMapper;
import com.zhonghui.wms.domain.WmsWarehouse;
import com.zhonghui.wms.service.IWmsWarehouseService;

/**
 * 智能仓储WMS-仓库Service业务层处理
 *
 * @author zhonghui
 * @date 2023-12-22
 */
@Service
public class WmsWarehouseServiceImpl implements IWmsWarehouseService
{
    @Autowired
    private WmsWarehouseMapper wmsWarehouseMapper;

    /**
     * 查询智能仓储WMS-仓库
     *
     * @param id 智能仓储WMS-仓库主键
     * @return 智能仓储WMS-仓库
     */
    @Override
    public WmsWarehouse selectWmsWarehouseById(Long id)
    {
        return wmsWarehouseMapper.selectWmsWarehouseById(id);
    }

    /**
     * 查询智能仓储WMS-仓库列表
     *
     * @param wmsWarehouse 智能仓储WMS-仓库
     * @return 智能仓储WMS-仓库
     */
    @Override
    public List<WmsWarehouse> selectWmsWarehouseList(WmsWarehouse wmsWarehouse)
    {
        return wmsWarehouseMapper.selectWmsWarehouseList(wmsWarehouse);
    }

    /**
     * 新增智能仓储WMS-仓库
     *
     * @param wmsWarehouse 智能仓储WMS-仓库
     * @return 结果
     */
    @Override
    public int insertWmsWarehouse(WmsWarehouse wmsWarehouse)
    {
        return wmsWarehouseMapper.insertWmsWarehouse(wmsWarehouse);
    }

    /**
     * 修改智能仓储WMS-仓库
     *
     * @param wmsWarehouse 智能仓储WMS-仓库
     * @return 结果
     */
    @Override
    public int updateWmsWarehouse(WmsWarehouse wmsWarehouse)
    {
        return wmsWarehouseMapper.updateWmsWarehouse(wmsWarehouse);
    }

    /**
     * 批量删除智能仓储WMS-仓库
     *
     * @param ids 需要删除的智能仓储WMS-仓库主键
     * @return 结果
     */
    @Override
    public int deleteWmsWarehouseByIds(Long[] ids)
    {
        return wmsWarehouseMapper.deleteWmsWarehouseByIds(ids);
    }

    /**
     * 删除智能仓储WMS-仓库信息
     *
     * @param id 智能仓储WMS-仓库主键
     * @return 结果
     */
    @Override
    public int deleteWmsWarehouseById(Long id)
    {
        return wmsWarehouseMapper.deleteWmsWarehouseById(id);
    }
}

